<?php
require_once dirname(__FILE__) . '/ORMBase.class.php';
function classToOrm($class = NULL) {
  $class = strtolower($class);
  switch ($class) {
    case 'pz_client':
      require_once dirname(__FILE__) . '/ORMpz_client.class.php';
      return new ORMpz_client();
    case 'pz_file':
      require_once dirname(__FILE__) . '/ORMpz_file.class.php';
      return new ORMpz_file();
    case 'pz_school':
      require_once dirname(__FILE__) . '/ORMpz_school.class.php';
      return new ORMpz_school();
    case 'pz_system':
      require_once dirname(__FILE__) . '/ORMpz_system.class.php';
      return new ORMpz_system();
    case 'pz_template':
      require_once dirname(__FILE__) . '/ORMpz_template.class.php';
      return new ORMpz_template();
    case 'pz_user':
      require_once dirname(__FILE__) . '/ORMpz_user.class.php';
      return new ORMpz_user();
    case 'pz_visa':
      require_once dirname(__FILE__) . '/ORMpz_visa.class.php';
      return new ORMpz_visa();
    default:
      return NULL;
  }
  return NULL;
}
?>
